-
Notifications
You must be signed in to change notification settings - Fork 224
refactor: static usage of junit extension #2879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Attila Mészáros <[email protected]>
@@ -18,7 +18,7 @@ public class PrimaryIndexerIT { | |||
public static final String RESOURCE_NAME1 = "test1"; | |||
public static final String RESOURCE_NAME2 = "test2"; | |||
|
|||
@RegisterExtension LocallyRunOperatorExtension operator = buildOperator(); | |||
@RegisterExtension LocallyRunOperatorExtension extension = buildOperator(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one not static?
...operatorsdk/operator/dependent/primarytosecondaydependent/PrimaryToSecondaryDependentIT.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@@ -261,6 +263,7 @@ protected void before(ExtensionContext context) { | |||
|
|||
additionalCustomResourceDefinitions.forEach(this::applyCrd); | |||
for (var ref : reconcilers) { | |||
this.operator = new Operator(configurationServiceOverrider); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be done in the loop as the operator is re-initialized for each reconciler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @metacosm this is wip, pls ignore the PR while not marked ready
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Attila Mészáros [email protected]